<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="include.jsp"></jsp:include>
<link href="static/css/rights.css" rel="stylesheet" type="text/css" /> 
</head>
<body>
<!-- 权限树 -->
	<table id="rightsTable"></table>

	<!-- 权限树顶部工具栏 -->
	<div id="rightsToolBar">
		<div>
			<a id="addButt" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true">添加</a>
			<a id="updateButt" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true">编辑</a>
			<a id="delButt" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true">删除</a>
			<a id="expandButt" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true">展开</a>
			<a id="collapseButt" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true">折叠</a>
		</div>
	</div>

	<!-- 添加和修改窗口 -->
	<div id="addOrUpdateDlg">
		<form id="addOrUpdateForm" method="post">
			<div id="hidInput">
				<input id="idInput" name="id" />
			</div>
			<div class="fitem">
				<label>父权限:</label><input id="pidInput" name="pid" />
			</div>
			<div class="fitem">
				<label>名称:</label><input id="nameInput" name="name" />
			</div>
			<div class="fitem">
				<label>编码:</label><input id="codeInput" name="code" />
			</div>
			<div class="fitem">
				<label>类型:</label><input id="typeInput" name="type" />
			</div>
			<div class="fitem">
				<label>图标:</label><input id="iconInput" name="icon" />
			</div>
			<div class="fitem">
				<label>链接:</label><input id="urlInput" name="url" />
			</div>
		</form>
	</div>

	<!-- 添加和修改窗口的底部按钮栏 -->
	<div id="dlgButt" >
		<a id="saveButt" class="easyui-linkbutton" data-options="iconCls:'icon-ok'">保存</a>
		<a id="cancelButt" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'">取消</a>
	</div>

	<script type="text/javascript" src="static/js/rights.js"></script>

</body>
</html>